package com.wfh.rpc.fault.retry;

import com.wfh.rpc.model.RpcResponse;

import java.util.concurrent.Callable;

/**
 * @Title: RetryStrategy
 * @Author wangfenghuan
 * @Package com.wfh.rpc.fault.retry
 * @Date 2025/10/17 08:25
 * @description: 重试策略
 */
public interface RetryStrategy {

    /**
     * 重试
     * @param callable
     * @return
     * @throws Exception
     */
    RpcResponse dRetry(Callable<RpcResponse> callable) throws Exception;

}
